<?php

namespace Modules\Edu\Notifications;



use Modules\Edu\Channels\SiteMessageChannel;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class CommentMessageNotification extends Notification
{
    use Queueable;

    protected $title;
    protected $action;

    public function __construct($title, $action)
    {
        $this->title = $title;
        $this->action = $action;
    }

    public function via($notifiable)
    {
        return [SiteMessageChannel::class];
    }


    public function toArray($notifiable)
    {
        return [
            //
            'title' => $this->title,
            'action' => $this->action
        ];
    }
}
